[gd_scene load_steps=7 format=1]

[ext_resource path="res://images/particles/explosion02.png" type="Texture" id=1]
[ext_resource path="res://scripts/particles/explosion.gd" type="Script" id=2]
[ext_resource path="res://images/particles/smoke.png" type="Texture" id=3]

[sub_resource type="Gradient" id=1]

offsets = FloatArray( 0, 0.171198, 0.607641, 1 )
colors = ColorArray( 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 )

[sub_resource type="Gradient" id=2]

offsets = FloatArray( 0, 0.324761, 1 )
colors = ColorArray( 1, 1, 1, 0, 1, 1, 1, 1, 0.501961, 0.501961, 0.501961, 0 )

[sub_resource type="Animation" id=3]

resource/name = "life"
length = 1.5
loop = false
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath(".:config/emitting")
tracks/0/interp = 1
tracks/0/imported = false
tracks/0/keys = { "times":FloatArray( 0, 0.3 ), "transitions":FloatArray( 1, 1 ), "update":1, "values":[ true, false ] }
tracks/1/type = "value"
tracks/1/path = NodePath("Smoke:config/emitting")
tracks/1/interp = 1
tracks/1/imported = false
tracks/1/keys = { "times":FloatArray( 0, 0.1, 0.4 ), "transitions":FloatArray( 1, 1, 1 ), "update":1, "values":[ false, true, false ] }
tracks/2/type = "method"
tracks/2/path = NodePath(".")
tracks/2/interp = 1
tracks/2/imported = false
tracks/2/keys = { "times":FloatArray( 0.2, 1.5 ), "transitions":FloatArray( 1, 1 ), "values":[ { "args":[  ], "method":"hide_parent" }, { "args":[  ], "method":"explode" } ] }

[node name="Explosion" type="Particles2D"]

visibility/blend_mode = 1
visibility/light_mask = 0
z/z = 10
config/amount = 32
config/lifetime = 2.0
config/time_scale = 2.0
config/half_extents = Vector2( 16, 16 )
config/texture = ExtResource( 1 )
params/direction = 360.0
params/spread = 180.0
params/linear_velocity = 48.0
params/spin_velocity = 2.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 0.0
params/radial_accel = 0.0
params/tangential_accel = 0.0
params/damping = 24.0
params/initial_angle = 0.0
params/initial_size = 0.15
params/final_size = 1.0
params/hue_variation = 0.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/linear_velocity = 0.5
randomness/spin_velocity = 1.0
randomness/damping = 0.25
randomness/initial_angle = 1.0
color/color_ramp = SubResource( 1 )
script/script = ExtResource( 2 )
__meta__ = { "__editor_plugin_screen__":"2D" }

[node name="Smoke" type="Particles2D" parent="."]

visibility/self_opacity = 0.25
visibility/behind_parent = true
visibility/light_mask = 0
z/z = -5
config/amount = 32
config/lifetime = 2.0
config/emitting = false
config/explosiveness = 0.75
config/texture = ExtResource( 3 )
params/direction = 360.0
params/spread = 180.0
params/linear_velocity = 48.0
params/spin_velocity = 1.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 0.0
params/radial_accel = 0.0
params/tangential_accel = 0.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 0.0
params/final_size = 1.0
params/hue_variation = 0.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/linear_velocity = 0.25
randomness/spin_velocity = 1.0
randomness/initial_size = 0.25
randomness/final_size = 0.25
color/color_ramp = SubResource( 2 )

[node name="Anim" type="AnimationPlayer" parent="."]

playback/process_mode = 1
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/life = SubResource( 3 )
playback/active = true
playback/speed = 1.0
blend_times = [  ]
autoplay = "life"


